package org.ccheng.xztx.domain;

import lombok.Data;
import org.ccheng.common.annotation.Attribute;
import org.ccheng.common.annotation.AttributeId;
import org.ccheng.common.annotation.AttributeType;

@Data
public class TaskProgressAward {

    @AttributeId
    @Attribute(key = "完成度:", type = AttributeType.NUM_REGEX)
    private String id;

    @Attribute(key = "完成度:", type = AttributeType.TASK_PROGRESS_AWARD_NAME_REGEX)
    private String name;

    @Attribute(key = "状态:", type = AttributeType.TASK_PROGRESS_AWARD_STATUS_REGEX)
    private String status;

    @Attribute(key = "领取状态:", type = AttributeType.TASK_PROGRESS_AWARD_AWARD_REGEX)
    private String award;

    public boolean isAward() {
        return "领取奖励".equals(award);
    }
}
